﻿$(function () {
    //index page qrcode float
    $(window).bind("load resize scroll", function () {
        floatQRCode();
    });
});

function floatQRCode() {
    var wndHeight = $(window).height();
    $("#qrcode_panel").height(wndHeight);
    var sltop = $(window).scrollTop();
    var qrcodetop = wndHeight - 180 + sltop;
    $("#qrcodebar").css("top", qrcodetop + "px").show();
}